package com.company.user.req;

import com.company.user.entity.PositionEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("通过部门id修改职位")
public class UpdatePositionListByPositionIdReq {
    @ApiModelProperty(value = "职位id")
    private String positionId;
    @ApiModelProperty(value = "职位名称")
    private String positionName;
    @ApiModelProperty(value = "部级id")
    private String departmentId;
    @ApiModelProperty(value = "排序")
    private Integer sort;
    @ApiModelProperty(value = "状态，0：正常，1：删除，2封禁")
    private Integer positionStatus;

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getPositionStatus() {
        return positionStatus;
    }

    public void setPositionStatus(Integer positionStatus) {
        this.positionStatus = positionStatus;
    }

    public void copyTo(PositionEntity positionEntity){
        positionEntity.setPositionId(this.positionId);
        positionEntity.setPositionStatus(this.positionStatus);
        positionEntity.setPositionName(this.positionName);
        positionEntity.setDepartmentId(this.departmentId);
        positionEntity.setSort(this.sort);
    }
}
